package com.bestcem.xm.ticket.service.convert;

import com.bestcem.xm.ticket.controller.param.ticket.config.TicketRuleParam;
import com.bestcem.xm.ticket.entity.mongo.TicketRule;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * @author liheng
 * @version v1.0
 * @date 2021/8/20 18:07
 */
@Mapper(componentModel = "spring")
public interface TicketRuleMapper {

    TicketRule paramToEntity(TicketRuleParam param);


    List<TicketRule> paramsToEntitys(List<TicketRuleParam> params);


}
